package com.miracle9.game.server.message;

import org.apache.mina.filter.codec.demux.DemuxingProtocolCodecFactory;
import org.springframework.stereotype.Service;

@Service("myCodecFactory")
public class MyCodecFactory extends DemuxingProtocolCodecFactory {

    public MyCodecFactory() {
        super.addMessageDecoder(MessageDecoderUtil.class);
        super.addMessageEncoder(MessageEncoderUtil.class, new MessageEncoderUtil());
    }

}
